﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Golf.WebUI.AdminShow.Admin
{
    public partial class Header : Golf.WebUI.App_code.ValidateLogin
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            labTime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Object obj = CookiesHelper.GetCookie("_AdminLogin");
            if (obj != null)
                admin_name.Text = Server.UrlDecode(obj.ToString());
            else
                Response.Write("<script>window.location.href='http://" + HttpContext.Current.Request.Url.Host + "/AdminShow/Admin/Login.aspx';</script>");
        }
    }
}
